package com.yami.shop.vo.group;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GroupSyncVo  implements Serializable {

    @NotEmpty(message = "用户id不能为空")
    @Schema(description = "同步群信息的用户Id",required = true)
    private String id;

    @Valid
    @Schema(description = "用户所在群组列表",required = true)
    private List<GroupModelSyncVo> groups;
}
